#include "myiemainwindow.h"
#include "ui_myiemainwindow.h"


myIEMainWindow::myIEMainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::myIEMainWindow)
{
    ui->setupUi(this);

    connect(ui->actionRefresh, SIGNAL(triggered()),
            ui->webView, SLOT(reload()));
}

myIEMainWindow::~myIEMainWindow()
{
    delete ui;
}

void myIEMainWindow::on_pushButtonGo_clicked()
{
    if(ui->lineEditUrl->text().isEmpty())
        return;
    QUrl url = QUrl::fromUserInput(ui->lineEditUrl->text());
    ui->webView->load(url);
    ui->webView->setFocus();
}

void myIEMainWindow::on_webView_linkClicked(const QUrl &arg1)
{
    ui->webView->load(arg1);
    ui->webView->setFocus();
}



void myIEMainWindow::on_actionForward_triggered()
{
    ui->webView->forward();
}
